#ifndef DISTANCE_CALC_H_
#define DISTANCE_CALC_H_
#include"../process.h"
#define EQUAL 0
#define DIFF 1
#define HALF_DIFF 0.5
class DistCalc{
	private:
			
		map<string, double> w_matrix;
		double** cost;
		inline double weight(char c1, char c2);
		inline double u_min(double c1, double c2, double c3);		
		inline int encode(int x, int y);
		bool default_model;
	public:
		double equal, diff;	
		DistCalc(iostream* model_file);
		DistCalc();
		~DistCalc();
		double dist(string c1, string c2);
		pair<double, vector<int>> dist_align(string c1, string c2);
};

#endif